#@edit()
#define content()
<!-- form start -->
<form class="form-horizontal" action="/agency/save" method="post">
    <div class="box-body">        
        <div class="form-group">
            <label class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
                <input type="text" name="user_name" class="form-control input-sm" value="#(itemData.user_name??)" placeholder="用户名" required="required" />
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <div class="input-group">
                    <span class="xsui-password-input"><input type="password" name="password" class="form-control input-sm" placeholder="密码" required="required" value="#(data.password??)" /></span>
                    <span class="input-group-btn">
                        <button class="btn btn-default btn-sm xsui-btn-show-password" type="button" title="显示密码"><span class="glyphicon glyphicon-eye-open"></span></button>
                    </span>
                </div>                
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-10">
                <input type="text" name="realname" class="form-control input-sm" placeholder="姓名" value="#(itemData.realname??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">电子邮件</label>
            <div class="col-sm-10">
                <input type="email" name="email" class="form-control input-sm" placeholder="电子邮件" value="#(itemData.email??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">手机号码</label>
            <div class="col-sm-10">
                <input type="text" name="mobile" class="form-control input-sm" placeholder="手机号码" value="#(itemData.mobile??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">备注信息</label>
            <div class="col-sm-10">
                <input type="text" name="remark" class="form-control input-sm"  placeholder="备注信息" size="79" value="#(itemData.remark??)" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-10">
                <label class="radio-inline"><input type="radio" name="user_status" value="1" checked="checked" data-value="#(itemData.user_status??)"> 启用</label>
                <label class="radio-inline"><input type="radio" name="user_status" value="0" data-value="#(itemData.user_status??)"> 禁用</label>
            </div>
        </div>
    </div>
    <input type="hidden" name="id" value="#(itemData.user_id??)" />
    <!-- /.box-body -->
    <div class="box-footer">
        <button type="button" class="btn btn-default xsui-btn-close-dialog">取消</button>
        <button type="submit" class="btn btn-primary pull-right">保存</button>
    </div>
    <!-- /.box-footer -->
</form>
#end
#define script_after()
<script>
    xsApp.xsfnTogglePassword();
    xsApp.xsfnCheckRadio('[name="user_status"]');
</script>
#end